function rem(btn){
	var flag = confirm("确认删除设备？");
	if(flag){
		var id = (btn.parentElement.parentElement.children)[0].innerHTML;
	    console.log(id);
	    var  params = {"id":id};
	    var jsonT = JSON.stringify(params);
	    $.ajax({
		    url : "/removeCamera",
		    type : "POST",
		    contentType: "application/json;charset=utf-8",
		    data : jsonT,
		    success : function(result) {
		    	console.log(result);
		    	window.location.href="index";
		    	alert(result);
		             } 
		           });
	}
	
};